<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<include file="Public/header"/>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>


</head>

<body>

<div id="wrapper">

	<include file="Public/left" />
	<div id="page-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header"> 
					<if condition="$info">
					编辑
					<else/>
					添加
					</if>
				</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
		<div class="row">
			<div class="col-lg-5 col-md-7 col-sm-12">
				<form role="form" method="post" action=""  enctype="multipart/form-data">
				<input class="form-control" type="hidden" id="eid" name="eid" value="{$info['eid']}">

				<div class="form-group">

					<label>名称</label>

					<input class="form-control" type="text" id="ename" name="ename" value="{$info['ename']}">

				</div>

				<div class="form-group">

					<label>优惠码</label>

					<input class="form-control" type="text" id="ecode" name="ecode" value="{$info['ecode']}">

				</div>

				<button type="submit" class="btn btn-default">提交</button>
			</form>
			</div>
		</div>
	</div>
	<!-- /.row -->
</div>
<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<include file="Public/footer" />

	<!-- Morris Charts JavaScript -->
	<script src="__PUBLIC__/Admin/bower_components/raphael/raphael-min.js"></script>
	<script src="__PUBLIC__/Admin/bower_components/morrisjs/morris.min.js"></script>
	<script src="__PUBLIC__/Admin/js/morris-data.js"></script>

</body>
<script>
	var ue = UE.getEditor('content');
	ue.ready(function() {
		//ue.setContent('{$info['cdetails']}');
	});
</script>      

</html>
